home *** CD-ROM | disk | FTP | other *** search
- MyLib.lib/malloc MyLib.lib/malloc
-
- NAME
- malloc - general memory allocation function
-
- SYNOPSIS
- #include <stdlib.h>
-
- void *malloc(size_t Size);
-
- FUNCTION
- The malloc() function allocates uninitialized space for an object whose
- size is specified by size.
- The allocated space is suitably aligned (after possible pointer coercion)
- for storage of any type of object.
- At program exit, all memory allocated via malloc() is automatically
- free()d.
-
- INPUTS
- Size - the size of the requested memory block
-
- RESULT
- A pointer to the memory block, or NULL.
- If NULL is returned, errno is set to ENOMEM.
-
- NOTE
- malloc() cannot be used to allocate memory with specific attributes.
- You must use AmigaOS functions to get such memory.
-
- SEE ALSO
- free, calloc, realloc
-